package com.car.carsharing.mapper;

import com.car.carsharing.pojo.UserCoupon;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface UserCouponMapper {
    Integer buyCoupon(@Param("userId") Integer userId,@Param("couponId") Integer couponId,@Param("time") String time,@Param ("effectiveTime")String effectiveTime);

    UserCoupon selectUserCoupon(UserCoupon uc);

    int updateUserCoupon(UserCoupon userCoupon);
}
